package com.papers.system.domain.bo;

import com.papers.common.core.domain.BaseEntity;
import com.papers.common.core.validate.AddGroup;
import com.papers.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * 知识点业务对象 t_juan_knowledge
 *
 * @author papers
 * @date 2022-10-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class TJuanKnowledgeBo extends BaseEntity {

    /**
     * ID
     */
    @NotBlank(message = "ID不能为空", groups = {EditGroup.class})
    private String knowledgeId;

    /**
     * 父节点
     */
    @NotBlank(message = "知识点父节点不能为空", groups = {AddGroup.class, EditGroup.class})
    private String knowledgeParentId;

    /**
     * 章节ID
     */
    //@NotBlank(message = "章节ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String chapterId;

    /**
     * 章节名称
     */
    private String chapterName;

    /**
     * 编码
     */
//    @NotBlank(message = "编码不能为空", groups = {AddGroup.class, EditGroup.class})
    private String knowledgeCode;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String knowledgeName;

    /**
     * 内容
     */
//    @NotBlank(message = "内容不能为空", groups = {AddGroup.class, EditGroup.class})
    private String knowledgeContent;

    /**
     * 描述
     */
//    @NotBlank(message = "描述不能为空", groups = {AddGroup.class, EditGroup.class})
    private String knowledgeDes;

    /**
     * 创建人
     */
    // @NotBlank(message = "创建人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String createdBy;

    /**
     * 创建时间
     */
    // @NotNull(message = "创建时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date createdTime;

    /**
     * 更新人
     */
    // @NotBlank(message = "更新人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String updatedBy;

    /**
     * 更新时间
     */
    // @NotNull(message = "更新时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date updatedTime;

    /**
     * 父节点
     */
    // @NotBlank(message = "父节点不能为空", groups = { AddGroup.class, EditGroup.class })
    private String parentIds;

    /**
     * 排序
     */
//    @NotBlank(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class})
    private Integer knowledgeSort;

    /**
     * 重要性
     */
    private String knowledgeImportance;
    private String treeType;
}
